package com.boxuegu.boxueguapiservice.service.impl;

import com.boxuegu.boxueguapiservice.dao.VideoMapper;
import com.boxuegu.boxueguapiservice.entity.UserCourse;
import com.boxuegu.boxueguapiservice.entity.Video;
import com.boxuegu.boxueguapiservice.service.VideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Vincent
 */
@Service("videoService")
public class VideoImpl implements VideoService {
  @Autowired
  private VideoMapper mapper;
  
  @Override
  public List<UserCourse> findHistoryByUserId(Integer usrId) {
    return mapper.findHistoryByUserId(usrId);
  }
  
  @Override
  public Video findVideoById(int id) {
    return mapper.findVideoById(id);
  }
}
